<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>抽奖活动设置</title>
<link href="http://g.alicdn.com/bui/bui/1.1.21/css/bs3/dpl.css" rel="stylesheet">
<link href="http://g.alicdn.com/bui/bui/1.1.21/css/bs3/bui.css" rel="stylesheet">
<script src="https://g.alicdn.com/??kissy/k/1.4.2/seed-min.js"></script>
<script src="http://g.alicdn.com/bui/bui/1.1.21/adapter.js"></script>
<link href="http://g.tbcdn.cn/kissy/k/1.3.2/??calendar/assets/shopmanage/dpl-min.css" rel="stylesheet">
<link href="/assets/shopmanage/main.css" rel="stylesheet">
<script src="/assets/shopmanage/main.js"></script> 
<script src="/assets/shopmanage/global_menu_kissy.js"></script>
<script src="/assets/shopmanage/gamecfg_1.js"></script>
</head>
<body style="width:990px;margin:0 auto;padding:10px 0;">

 <div class="doc-content">
    <div class="panel">
      <div class="panel-body">
	  <div class="row">
		<div class="span24 doc-content">
		<h3 class="pull-left">我的互动 >> 抽奖活动设置</h3>
		<div class="button-group pull-right">
		  {include file='../../../PublicView/global_menu.html'}
		</div>
		<!-- <span class="label label-info  pull-right"><i class="icon-white icon-home"></i></span> -->
		</div>
	  </div>
	  <hr />
	  <div class="tips tips-small tips-info">
        <span class="x-icon x-icon-small x-icon-info"><i class="icon icon-white icon-info"></i></span>
        <div class="tips-content">请设置抽奖活动。注意，此处的抽奖和“我的互动”完成预测后的抽奖不是一个活动。</div>
      </div>
	  <br />
	  <form method="post" action="/?a=gamecfg_save&m=Shopmanage">
					<div class="form-horizontal">
						<div class="row">
							<div class="control-group span24">
							<label class="control-label">活动类型：</label>
							<div class="controls control-row-auto span19  span-width">
									<div class="well well-small">
										<div class="row control-row1">
											<span class="auxiliary-text offset1">
												点击图片返回重新选择。{if $cfg.curtool=="dices"}您选择的是大富翁外观，可以为外观绑定奖品。{/if}
												<span class="x-icon x-icon-mini x-icon-info helper" data-tip="大富翁外观一共14个奖品位置，可以为每一个奖品位置绑定奖品。绑定后，中出相应的奖品，闪动的方块就会停在绑定的位置。<a href='/?a=bandcfg&m=Shopmanage&c=frontcfg' class='button button-mini button-info js-giftband' >奖品绑定</a>">?</span>
											</span>
										</div>
											<div class="control-group ">
												<label for="" class="control-label">{$name}：</label>
												<div class=" clearfix">
												<img src="{$pic_url}" class="repick" /> <span class="button repick">重新选择</span> {if $cfg.curtool=="dices" && 1==2}<a href="/?a=bandcfg&m=Shopmanage&c=frontcfg" class="button button-small button-info js-giftband" >奖品绑定</a>{/if}
												</div>
											</div>
									</div>
							</div>
							</div>
							{if $tooltype==3}
							<div class="control-group span24">
							<label class="control-label">游戏设定：</label>
							<div class="controls control-row-auto span19 span-width">
									<div class="well well-small">
										<div class="row control-row1">
											<span class="auxiliary-text offset1">
                            请填写每一轮活动的时长。游戏名次按照每一轮内的成绩排名。
											</span>
										</div>
											<div class="control-group">
												<label for="" class="control-label">每一轮：</label>
												<div class="controls">
													<select class="input-small blselect form" name="range_time" data-post="range_time">
													<option value="1" {if $cfg.range_time==1}selected="selected"{/if}>10分钟</option>
													<option value="2" {if $cfg.range_time==2}selected="selected"{/if}>20分钟</option>
													<option value="3" {if $cfg.range_time==3}selected="selected"{/if}>30分钟</option>
													<option value="4" {if $cfg.range_time==4}selected="selected"{/if}>1小时</option>
													</select>
												</div>
											</div>
											
											<div class="control-group">
												<label class="control-label">名次奖励：</label>
												<div class="controls">
													第一名<input type="text" class="span2 span-width control-text form" name="game_lv1_times"  data-post="game_lv1_times" value="{$cfg.game_lv1_times|default:10}">次抽奖机会
													<span class="x-icon x-icon-mini x-icon-info helper" data-tip="游戏每轮的第一名赠送的抽奖机会。该名次在每一轮开始时归零，即每一轮都会产生新的第一名。例如，每小时一轮游戏，1点-2点时A用户得第一名，2点-3点时用户再次参与，则还可以获得第一名">?</span>
												</div>
											</div>
											<div class="control-group">
												<label class="control-label">名次奖励：</label>
												<div class="controls">
													第二名<input type="text" class="span2 span-width control-text form" name="game_lv2_times"  data-post="game_lv2_times" value="{$cfg.game_lv2_times|default:5}">次抽奖机会
													<span class="x-icon x-icon-mini x-icon-info helper" data-tip="游戏每轮的第二名赠送的抽奖机会。该名次在每一轮开始时归零，即每一轮都会产生新的第一名。例如，每小时一轮游戏，1点-2点时A用户得第一名，2点-3点时用户再次参与，则还可以获得第一名">?</span>
												</div>
											</div>
											<div class="control-group">
												<label class="control-label">名次奖励：</label>
												<div class="controls">
													第三名<input type="text" class="span2 span-width control-text form" name="game_lv3_times"  data-post="game_lv3_times" value="{$cfg.game_lv3_times|default:3}">次抽奖机会
													<span class="x-icon x-icon-mini x-icon-info helper" data-tip="游戏每轮的第三名赠送的抽奖机会。该名次在每一轮开始时归零，即每一轮都会产生新的第一名。例如，每小时一轮游戏，1点-2点时A用户得第一名，2点-3点时用户再次参与，则还可以获得第一名">?</span>
												</div>
											</div>
											<div class="control-group">
												<label class="control-label">名次奖励：</label>
												<div class="controls">
													参与奖<input type="text" class="span2 span-width control-text form" name="game_def_times"  data-post="game_def_times" value="{$cfg.game_def_times|default:1}">次抽奖机会
													<span class="x-icon x-icon-mini x-icon-info helper" data-tip="只要参与游戏就赠送的抽奖机会。该名次在每一轮开始时归零，即每一轮都会产生新的第一名。例如，每小时一轮游戏，1点-2点时A用户得第一名，2点-3点时用户再次参与，则还可以获得第一名">?</span>
												</div>
											</div>
											
									</div>
							</div>
							</div>
							{/if}
							<div class="control-group span24">
								<label class="control-label">活动信息：</label>
								<div class="controls control-row-auto span19 span-width">
									<div class="well well-small">
										<div class="row control-row1">
											<span class="auxiliary-text offset1">
                            请填写活动信息。
											</span>
										</div>
											<div class="control-group">
												<label for="" class="control-label">开始时间：</label>
												<div class="controls">
													<input type="text" class="start-calendar calendar control-text form"  style="width:140px" name="start_time" data-post="start_time" value="{$cfg.start_time|date_format:'%Y-%m-%d %H:%M:%S'|default:""}"/>
													<span class="auxiliary-text">
													开始时间较晚，则显示至开始的倒计时
													</span>
													<span class="x-icon x-icon-mini x-icon-info helper" data-tip="活动的开始时间。如果没到时间，点击抽奖按钮会提示“活动还未开始”，活动没开始之前，显示到开始时的倒计时">?</span>
												</div>
											</div>
											<div class="control-group">
												<span class="auxiliary-text ">
					活动至少持续一天。开始后显示倒计时
												</span>
												<label for="" class="control-label">结束时间：</label>
												<div class="controls">
													<input type="text" class="end-calendar calendar control-text form"  style="width:140px" name="end_time" value="{$cfg.end_time|date_format:'%Y-%m-%d %H:%M:%S'|default:""}" data-post="end_time">
												</div>
												<span class="x-icon x-icon-mini x-icon-info helper" data-tip="活动结束之前显示倒计时，结束后显示“活动已结束”。">?</span>
												
											</div>
											<div class="control-group">
												<span class="auxiliary-text ">
					允许中奖用户领奖的时间限制。
												</span>
												<label for="" class="control-label">领奖时间：</label>
												<div class="controls">活动结束后
													<select class="input-small blselect form" name="with_draw_time" data-post="with_draw_time">
													<option value="1" {if $cfg.withdraw==1}selected="selected"{/if}>一周内</option>
													<option value="2" {if $cfg.withdraw==2}selected="selected"{/if}>两周内</option>
													<option value="3" {if $cfg.withdraw==3}selected="selected"{/if}>三周内</option>
													<option value="4" {if $cfg.withdraw==4}selected="selected"{/if}>四周内</option>
													<option value="0" {if $cfg.withdraw==0}selected="selected"{/if}>一直可以</option>
													</select>领奖
												</div>
											</div>
											<div class="control-group">
												<label class="control-label">首次参与：</label>
												<div class="controls">
													默认<input type="text" class="span2 span-width control-text form" name="tms_newcomer"  data-post="tms_newcomer" value="{$cfg.tms_newcomer|default:3}">次抽奖机会
													<span class="auxiliary-text">
													用户进店即可获得的抽奖机会，仅赠送一次
													</span>
													<span class="x-icon x-icon-mini x-icon-info helper" data-tip="用户首次参与活动时赠送的抽奖机会，建议不低于3次。用户只要参与过一次抽奖，就算作老用户。如果在“抽奖用户”清空所有抽奖用户，则系统将所有用户视为新用户，所有用户才可以再次获得首次参与的次数。<br /><br />例子：小李来到店铺，此前没有抽过奖。<br />小李点击抽奖按钮，获得首次参与的次数。<br />小李的首次参与次数用完。<br /><br />在您清空抽奖用户之前，他再也不会获得首次参与的次数了。">?</span>
												</div>
											</div>
											<div class="control-group">
												<label class="control-label">每天参与：</label>
												<div class="controls">
													每天<input type="text" class="span2 span-width control-text form" name="tms_everyday"  data-post="tms_everyday" value="{$cfg.tms_everyday|default:3}">次抽奖机会
													<span class="auxiliary-text">
													用户每天都可获得的抽奖机会，重复赠送
													</span>
													<span class="x-icon x-icon-mini x-icon-info helper" data-tip="用户每天都可获得的抽奖机会，只要用户每天都来抽奖，就会赠送这里设定的次数。本参数在首次参与时不起作用，仅从第二天开始赠送。<br /><br />例子：小李今天再次到店铺，今天是他第一次进店，他已经获得过首次参与的次数。<br />小李点击抽奖按钮，系统判断他今天已经抽过奖了。<br />系统提示，今天已经抽过奖哦，明天再来还可以再抽X次！<br /><br />判定结果：小李今天获得过首次参与的次数，因此他不能获得每日赠送的次数。<br />如不需要该参数，请设为0">?</span>
												</div>
											</div>
									</div>
								</div>
							</div>
							<div class="control-group span24">
								<label class="control-label">关注条件：</label>
								<div class="controls control-row-auto span19 span-width">
									<div class="well well-small">
										<div class="row control-row1">
											<span class="auxiliary-text offset1">
                            请填写活动信息。
											</span>
										</div>
											<div class="control-group">
												<label class="control-label">收藏店铺：</label>
												<div class="controls" >
													<label class="checkbox hide"  data-tip="喜欢店铺" for=""><input type="checkbox" class="form" name="like" {if $cfg.likeme==111}checked="checked"{/if} data-post="like">喜欢店铺<i class=""></i></label>
													<label class="checkbox "  data-tip="添加店铺到淘宝收藏夹"for=""><input type="checkbox" class="form" name="collect" {if $cfg.collect==1}checked="checked"{/if} data-post="collect">收藏店铺<i class=""></i></label>
													<span class="auxiliary-text">
													必须收藏店铺才可以参与活动
													</span>
													<span class="x-icon x-icon-mini x-icon-info helper" data-tip="用户收藏店铺才可以参与抽奖。<br /><br />例子：小夏来到店铺，点击抽奖按钮。<br />系统弹出对话框：“请收藏店铺才可以抽奖哦!” <br />小夏点击收藏店铺，完成收藏。<br /><br />系统判断小夏已经收藏，可以抽奖了">?</span>
													<label class="checkbox helper hide" data-tip="关注店铺主账号" for=""><input type="checkbox" class="form" name="follow" {if $cfg.followme==111}checked="checked"{/if} data-post="follow">关注店铺<i class=""></i></label>
													<!-- <a href="###"><span class="x-icon x-icon-mini x-icon-info helper"  data-tip="show" data-tip-info="sc-tip">?
													<div class="sc-tip bui-overlay bui-ext-position tips tips-small tips-info tips-no-icon hide">
														<div class="tips-content" style="font-weight:normal;text-shadow:none;font-size:12px">用户点击相应按钮完成操作后才可参加活动。
															<br />
															<div class="sns-widget pull-left "  style="margin:2px 5px 0 0;width:55px;background-color:transparent;" >
																<div class="sns-like-wrap">   <a title="我的淘宝，大家一起赞！" class="dig-button J_Trigger">       <span class="dig-icon"><s class="J_Icon"></s></span>       <span class="dig-button-title">喜欢</span>   </a>   <span class="dig-count">       <i class="c">(</i>       <span class="J_Counter">1</span>       <i class="c">)</i>   </span>   <div class="tb-dig-tip hide">       <div class="tip-content"></div>       <s class="arrow"></s>   </div></div>
															</div>
															<div class="sns-widget pull-left " style="margin-right:5px;width:67px;height:26px;background-color:transparent;background:url(http://img04.taobaocdn.com/tps/i4/T1hvYaXchdXXcr6Jgk-178-118.gif) no-repeat 0 0" ></div>
															<div class="sns-widget pull-left " style="width:76px;height:24px;background-color:transparent;">
															<a href="#" class="J_FriendFollow friend-followed" data-userid="738050584" data-group="" data-custom="type=87" data-showtipdialog="hide">已关注</a>
															</div>
														</div>
													</div>
													</span></a> -->
												</div>
											</div>
											
											<div class="control-group">
												<label class="control-label">关注品牌：</label>
												<div class="controls" >
													<label class="checkbox"  data-tip=""for=""><input type="checkbox" class="form brandme"  name="brandme" {if $cfg.brandid!=0}checked="checked"{/if} data-post="brandme">关注品牌<i class=""></i></label>
													<input type="text" {if $cfg.brandid==0}readonly="readonly" style="background:#DDD"{/if} class="control-text span2 span-width brandid form" value="{$cfg.brandid|default:'0'}" name="brandid" data-post="brandid" data-val="{$cfg.brandid|default:'0'}">
													字号ID
													<span class="auxiliary-text">
													仅天猫用户有效！
													</span>
													<span class="x-icon x-icon-mini x-icon-info helper" data-tip="用户收藏店铺才可以参与抽奖。<br /><br />例子：小夏来到店铺，点击抽奖按钮。<br />系统弹出对话框：“请关注品牌才可以抽奖哦!” <br />小夏点击关注按钮，完成关注。<br /><br />系统判断小夏已经关注，可以抽奖了 <br /><br /><span style='color:red'>怎样找到品牌字号？</span><br />简单来讲，品牌字号是您的店铺首页源文件中“data-brandid=”后面的一串数字，详细方法请点击问号。<span class='x-icon x-icon-mini x-icon-info helper-in helper' data-tip='IE浏览器：<br />第一步：打开您的店铺首页。<br />第二步：点击“查看”菜单下的“源文件”。<br />第三步：在打开的文本文件中，点击“编辑”菜单下的“查找”。<br  />第四步：在弹出的查找对话框中，输入“data-brandid=”，点“查找下一个”。<br />第五步：紧跟其后的双引号内的数字就是您的品牌ID，请复制这串数字（不带引号）。<br /><br />chorme、360浏览器非兼容模式：<img src=http://img01.taobaocdn.com/imgextra/i1/27390555/TB2Tev9bpXXXXahXXXXXXXXXXXX-27390555.jpg_760x760.jpg />'>?</span>">?</span>
												</div>
											</div>
									</div>
								</div>
							</div>
							<div class="control-group span24">
							<label class="control-label">订单设定：</label>
								<div class="controls control-row-auto span19 span-width">
									<div class="well well-small">
											<div class="control-group">
												<label class="control-label"><span class="label label-warning">开关</span>：</label>
												<div class="controls">
													<select class="input-small orderset form" name="orderset">
													<option value="0" {if $cfg.orderset==0}selected="selected"{/if}>关闭</option>
													<option value="1" {if $cfg.orderset==1}selected="selected"{/if}>打开</option>
													</select>订单设置总开关<i class=""></i>
												</div>
												<span class="x-icon x-icon-mini x-icon-info helper" data-tip="订单抽奖开关，只有该选项开启后以下设置才生效">?</span>
											</div>
											<div class="control-group">
												<label class="control-label">是否单个条件？</label>
												<div class="controls">
													<input type="radio" name="andor" value="or" {if $cfg.andor==1}checked="checked"{/if} >单独生效
													<input type="radio" name="andor" value="and" {if $cfg.andor==0}checked="checked"{/if}>全部生效
													<span class="auxiliary-text">
													以下条件同时生效，还是单独生效？
													</span>
												</div>
												<span class="x-icon x-icon-mini x-icon-info helper" data-tip="条件的与/或判断。打开此开关，满足其中之一即可抽奖，否则要全部满足才可抽奖。">?</span>
											</div>
											<div class="control-group">
												<label class="control-label">金额限定：</label>
												<div class="controls">
													<input type="text" {if $cfg.orderset==0}readonly="readonly" style="background:#DDD"{/if} class="control-text span2 span-width order_payment form" value="{$cfg.order_payment|default:'0'}" name="order_payment" data-post="order_payment" data-val="{$cfg.order_payment|default:'0'}">
													元<i class=""></i>
													<span class="auxiliary-text">
													金额达到指定数目才可用订单号抽奖
													</span>
												</div>
												<span class="x-icon x-icon-mini x-icon-info helper" data-tip="本选项仅限单笔订单。例如设置1元，即订单号超过1元，系统才会允许抽奖。<br /><br />例子：小王来到店铺，点击抽奖按钮，并且用完了所有抽奖次数。<br />系统提示：“亲！您的抽奖次数已用完，您还可以输入订单号抽奖”，并给出输入框。<br />小王在淘宝“已购买的宝贝”复制订单号，在输入框内输入。<br />小王点击“继续抽奖”，系统判断订单金额为10元，则允许抽奖。<br />如果小王输入的订单号不满1元，则系统提示：您的订单号不满1元哦！请再购买一次吧！<br /><br />如果您不希望限定金额，则输入0，系统仍然会要求输入订单号抽奖，但不再判断金额。">?</span>
											</div>
											<div class="control-group">
												<label class="control-label">付款时间：</label>
												<div class="controls">
													<input type="text" {if $cfg.orderset==0}readonly="readonly"{/if} class="pay-start-calendar calendar control-text form"  style="{if $cfg.orderset==0}background-color: rgb(221, 221, 221);{/if}width:140px" name="order_pay_time_start" data-post="order_pay_time_start" value="{$cfg.order_pay_time_start|date_format:'%Y-%m-%d %H:%M:%S'|default:""}"/>
													至
													<input type="text" {if $cfg.orderset==0}readonly="readonly"{/if} class="pay-end-calendar calendar control-text form"  style="{if $cfg.orderset==0}background-color: rgb(221, 221, 221);{/if}width:140px" name="order_pay_time_end" data-post="order_pay_time_end" value="{$cfg.order_pay_time_end|date_format:'%Y-%m-%d %H:%M:%S'|default:""}"/>
												</div>
												<span class="auxiliary-text">
													限定付款时间
													</span>
												<span class="x-icon x-icon-mini x-icon-info helper" data-tip="限定订单的付款时间。如果不在此时间段内，系统提示“亲，只有xx月xx日至xx月xx日的订单才可抽奖哦！”<br /><br />注意！仅支持3个月以内的订单！<br />如需超过3个月的订单，则必须开启自动订单服务，且持续订购本抽奖工具3个月以上！">?</span>
											</div>
											<div class="control-group">
												<label class="control-label">商品限定：</label>
												<div class="controls">
													<input type="hidden" readonly="readonly" class="control-text span2 span-width order_items form" value="{$cfg.order_items|default:''}" name="order_items" data-post="order_items" data-val="{$cfg.order_items|default:''}">
													<span class="items-order_items">{$cfg.order_items_count|default:'0'}</span>件商品<button class="button button-mini button-danger js-itemset" type="button">设置</button><i class=""></i>
													<span class="auxiliary-text">
													仅购买指定商品的订单号可抽奖！
													</span>
												</div>
												<span class="x-icon x-icon-mini x-icon-info helper" data-tip="仅限购买了指定商品的订单号抽奖。<br /><br />如：您设置了购买A、B、C商品的订单号可抽奖，没有设置D商品，则购买A、B、C商品可抽奖。<br />购买D商品的订单号则会提示：“亲，只有购买指定商品才可以抽奖哦！请仔细查看抽奖公告。”">?</span>
											</div>
											<!--div class="control-group">
												<label class="control-label">完成时间：</label>
												<div class="controls">
													<input type="text" class="c-start-calendar calendar control-text form"  style="width:140px" name="order_success_start_time" data-post="order_success_start_time" value="{$cfg.order_success_start_time|date_format:'%Y-%m-%d %H:%M:%S'|default:""}"/>
													至
													<input type="text" class="c-end-calendar calendar control-text form"  style="width:140px" name="order_success_end_time" data-post="order_success_end_time" value="{$cfg.order_success_end_time|date_format:'%Y-%m-%d %H:%M:%S'|default:""}"/>
													<span class="auxiliary-text">
													限定收货时间
													</span>
												</div>
												<span class="x-icon x-icon-mini x-icon-info helper" data-tip="限定交易完成的时间。如果不在此时间段内，系统提示“亲，只有xx月xx日至xx月xx日的订单才可抽奖哦！<br />如果完成时次数为0，则不生效。<br /><br />注意！仅支持3个月以内的订单！<br />如需超过3个月的订单，则必须开启自动订单服务，且持续订购本抽奖工具3个月以上！">?</span>
											</div-->
											<span class="auxiliary-text">
											以下是赠送次数设置，均为同时生效。如不需要请设为0。
											</span>
											<hr />
											<div class="control-group">
												<label class="control-label">超额累计：</label>
												<div class="controls">
													<input type="text" 
													{if $cfg.orderset==0}readonly='readonly' style='background:#DDD'{/if} 
													{if $cfg.order_payment_addon=='--'}readonly="readonly"{/if}
													class="control-text span2 span-width order_pay_over_amount form" 
													value="{$cfg.order_payment_addon|default:'0'}" 
													name="order_payment_overamont" 
													data-post="order_payment_overamont" 
													data-val='{if $cfg.order_payment_addon=="--"}1{else}{$cfg.order_payment_addon}{/if}' />
													次<i class=""></i>
													<label class="checkbox"  data-tip=""for=""><input type="checkbox" class="form overamont"  name="overamont" {if $cfg.order_payment_addon=="--"}checked="checked"{/if} data-post="overamont">超多少累计多少<i class=""></i></label>
													<span class="auxiliary-text">
													金额超过1倍时累计
													</span>
												</div>
												<span class="x-icon x-icon-mini x-icon-info helper" data-tip="订单金额超过设定值1倍以上时是否累计，累计几次。<br /><br />例子：小王输入一笔10元的订单，而您设置1元即可抽奖，且允许重复累计5次。<br />系统计算10元订单最多累计10次，而您允许累计5次，则小王获得5倍的抽奖机会。<br />如果订单金额限定为0元，则这里无论填入多少都不生效。">?</span>
											</div>
											<div class="control-group">
												<label class="control-label">付款时：</label>
												<div class="controls">
													<input type="text" {if $cfg.orderset==0}readonly="readonly" style="background:#DDD"{/if} class="control-text span2 span-width order_pay_times form" value="{$cfg.order_pay_times|default:'0'}" name="order_pay_times" data-post="order_pay_times" data-val="{$cfg.order_pay_times|default:'0'}">
													次<i class=""></i>
													<span class="auxiliary-text">
													用户拍下且付款后获得的抽奖次数
													</span>
												</div>
												<span class="x-icon x-icon-mini x-icon-info helper" data-tip="用户拍下且付款后获得的抽奖次数。<br /><br />例子：小强来到店铺抽奖，他拍下一笔订单，但未付款<br />小强在系统提示下输入订单号，系统反馈“亲，您还未付款哦！请赶紧付款吧，马上就可以抽奖啦！”。<br />小强付款后，再次输入同一个订单号，就可以获得您指定的抽奖次数了">?</span>
											</div>
											<div class="control-group">
												<label class="control-label">完成时：</label>
												<div class="controls">
													<input type="text" {if $cfg.orderset==0}readonly="readonly" style="background:#DDD"{/if} class="control-text span2 span-width order_success_times form" value="{$cfg.order_success_times|default:'0'}" name="order_success_times" data-post="order_success_times" data-val="{$cfg.order_success_times|default:'0'}">
													次<i class=""></i>
													<span class="auxiliary-text">
													用户确认收货后获得的抽奖次数
													</span>
												</div>
												<span class="x-icon x-icon-mini x-icon-info helper" data-tip="用户确认收货、交易成功后输入订单号获得的抽奖次数。">?</span>
											</div>
											<div class="control-group">
												<label class="control-label">好评时：</label>
												<div class="controls">
													<input type="text" {if $cfg.orderset==0}readonly="readonly" style="background:#DDD"{/if} class="control-text span2 span-width goodrate_times form" value="{$cfg.tms_goodrate|default:'0'}" name="tms_goodrate" data-post="tms_goodrate" data-val="{$cfg.tms_goodrate|default:'0'}">
													次<i class=""></i>
													<span class="auxiliary-text">
													用户给予好评后获得的抽奖次数。注意，必须评分！
													</span>
												</div>
												<span class="x-icon x-icon-mini x-icon-info helper" data-tip="用户给予好评后获得的抽奖次数。如果用户还未评价，则提示“亲，您还没有好评哦！请给个好评并填写好评内容再来抽奖哦！">?</span>
											</div>
											<div class="control-group">
												<label class="control-label">好评关键词限定：</label>
												<div class="controls control-row3">
													<textarea style="width:300px;{if $cfg.orderset==0}background:#DDD{/if}" class="goodrate_kwd" {if $cfg.orderset==0}readonly="readonly"{/if} name="goodrate_kwd">{$cfg.goodrate_kwd|default:'系统默认好评,很差,骗人,垃圾,失望,无奈,上当,拙劣,坑爹,质量太差,难看,很破,伤心,再也不来,不值这个价,质量差,质量不行,慎重,太次,粗糙,郁闷,可恶,以防受骗,气人,不敢恭维,太假,不是一般差,差评,中评,便宜没好货,都别买'}</textarea>
												</div>
												<span class="auxiliary-text">
												出现以下关键词时不赠送次数
												</span>
												<span class="x-icon x-icon-mini x-icon-info helper" data-tip="好评内容出现此处的关键字时不赠送次数。系统提示“亲，您给出的评价内容我们无法接受，抱歉您不能抽奖！”<br />每个关键词用英文逗号分开。<br /><br />推荐过滤关键字：<br />系统默认好评,很差,骗人,垃圾,失望,无奈,上当,拙劣,坑爹,质量太差,难看,很破,伤心,再也不来,不值这个价,质量差,质量不行,慎重,太次,粗糙,郁闷,可恶,以防受骗,气人,不敢恭维,太假,不是一般差,差评,中评,便宜没好货,都别买">?</span>
											</div>
									</div>
								</div>
							</div>
							<div class="control-group span24">
							<label class="control-label">购物车设定：</label>
								<div class="controls control-row-auto span19 span-width">
									<div class="well well-small">
										<div class="tips tips-small tips-info">
										<span class="x-icon x-icon-small x-icon-info"><i class="icon icon-white icon-info"></i></span>
										<div class="tips-content">
						  注意！购物车抽奖只做引导，不检测是否真的加入购物车。
										</div>
										</div>
											<div class="control-group">
												<label class="control-label"><span class="label label-warning">开关</span>：</label>
												<div class="controls">
													<select class="input-small cartset onoff form" name="cartset" data-input="cart">
													<option value="0" {if $cfg.cartset==0}selected="selected"{/if}>关闭</option>
													<option value="1" {if $cfg.cartset==1}selected="selected"{/if}>打开</option>
													</select>购物车抽奖总开关<i class=""></i>
												</div>
												<span class="x-icon x-icon-mini x-icon-info helper" data-tip="购物车抽奖开关，只有该选项开启后以下设置才生效">?</span>
											</div>
											<div class="control-group">
												<label class="control-label">设置商品：</label>
												<div class="controls">
													<input type="hidden" readonly="readonly" class="control-text span2 span-width cart_items form" value="{$cfg.cart_items|default:''}" name="cart_items" data-post="cart_items" data-val="{$cfg.cart_items|default:''}">
													<span class="items-cart_items">{$cfg.cart_items_count|default:'0'}</span>件商品<button class="button button-mini button-danger js-cartset" type="button">设置</button><i class=""></i>
													<span class="auxiliary-text">
													请设置参与抽奖的商品，必须设置才可以。最多60个。
													</span>
												</div>
												<span class="x-icon x-icon-mini x-icon-info helper" data-tip="请设置参与抽奖的商品。用户在添加这些商品至购物车后，获得抽奖次数。<br /><br />注意！每加入一件商品都会赠送一次机会，所以请仔细甄选商品！必须设置才可以。最多60个">?</span>
											<!-- 例子：小刘抽奖次数用完，且没有订单号可以抽奖<br />系统提示：“亲，您喜欢本店的商品吗？如果喜欢的话，请将这些商品加入您的购物车，您将获得X次抽奖机会！”<br />系统同时界面弹出已设置的商品缩略图<br />小刘点击这些缩略图，即加入购物车，同时系统赠送设定的抽奖次数<br /><br /> -->
											</div>
											<div class="control-group">
												<label class="control-label">每件商品获得次数：</label>
												<div class="controls">
													<input type="text" {if $cfg.cartset==0}readonly="readonly" style="background:#DDD"{/if} class="control-text span2 span-width cartadd_times cart form" value="{$cfg.tms_cartadd|default:'0'}" name="tms_cartadd" data-post="tms_cartadd" data-val="{$cfg.tms_cartadd|default:'0'}">
													次<i class=""></i>
													<span class="auxiliary-text">
													用户将每一件商品加入购物车时获得的抽奖次数
													</span>
												</div>
												<span class="x-icon x-icon-mini x-icon-info helper" data-tip="用户将每一件商品加入购物车时获得的抽奖次数。重复加入购物车只计算一次。">?</span>
											</div>
											<div class="control-group">
												<label class="control-label">最多获得次数：</label>
												<div class="controls">
													<input type="text" {if $cfg.cartset==0}readonly="readonly" style="background:#DDD"{/if} class="control-text span2 span-width cartadd_times_limit cart form" value="{$cfg.tms_cartadd_limit|default:'0'}" name="tms_cartadd_limit" data-post="tms_cartadd_limit" data-val="{$cfg.tms_cartadd_limit|default:'0'}">
													次<i class=""></i>
													<span class="auxiliary-text">
													加入购物车最多获得的抽奖次数
													</span>
												</div>
												<span class="x-icon x-icon-mini x-icon-info helper" data-tip="购物车抽奖次数上限。超过此设定不再增加。">?</span>
											</div>
									</div>
								</div>
							</div>
							{if $noup ==1 }
							<div class="control-group span24">
							<label class="control-label">高级设定：</label>
								<div class="controls control-row-auto span19 span-width">
									<div class="well well-small">
									<div class="row control-row1">
									<span class="auxiliary-text offset1">
									以下选项均在订单完成时生效，请谨慎设置！
									</span>
									</div>
											<!--div class="control-group">
												<label class="control-label"><span class="label label-warning">总开关</span>：</label>
												<div class="controls">
													<select class="input-small blselect form" name="advancedset" data-post="advancedset">
													<option value="0" {if $cfg.advancedset==0}selected="selected"{/if}>关闭</option>
													<option value="1" {if $cfg.advancedset==1}selected="selected"{/if}>打开</option>
													</select>高级设置总开关<i class=""></i>
												</div>
												<span class="x-icon x-icon-mini x-icon-info helper" data-tip="以下所有设置的总开关，只有该选项开启后以下设置才生效">?</span>
											</div-->
											<!-- <div class="control-group">
												<label class="control-label">淘宝会员等级：</label>
												<div class="controls">
												<label class="checkbox" for=""><input type="checkbox" class="lev6 form" name="viplev6" {if $viplev6}checked="checked"{/if} data-post="viplev6" data-lev="6"><i class="icon lev6" data-lev="6" style="background:url(http://img04.taobaocdn.com/tps/i4/T1oK1FXjdcXXXXXXXX-690-31.jpg) -670px -14px;height:15px;width:15px;"></i></label>
												<label class="checkbox" for=""><input type="checkbox" class="lev5 form" name="viplev5" {if $viplev5}checked="checked"{/if} data-post="viplev5" data-lev="5"><i class="icon lev5" data-lev="5" style="background:url(http://img04.taobaocdn.com/tps/i4/T1oK1FXjdcXXXXXXXX-690-31.jpg) -540px -14px;height:15px;width:15px;"></i></label>
												<label class="checkbox" for=""><input type="checkbox" class="lev4 form" name="viplev4" {if $viplev4}checked="checked"{/if} data-post="viplev4" data-lev="4"><i class="icon lev4" data-lev="4" style="background:url(http://img04.taobaocdn.com/tps/i4/T1oK1FXjdcXXXXXXXX-690-31.jpg) -420px -14px;height:15px;width:15px;"></i></label>
												<label class="checkbox" for=""><input type="checkbox" class="lev3 form" name="viplev3" {if $viplev3}checked="checked"{/if} data-post="viplev3" data-lev="3"><i class="icon lev3" data-lev="3" style="background:url(http://img04.taobaocdn.com/tps/i4/T1oK1FXjdcXXXXXXXX-690-31.jpg) -299px -14px;height:15px;width:15px;"></i></label>
												<label class="checkbox" for=""><input type="checkbox" class="lev2 form" name="viplev2" {if $viplev2}checked="checked"{/if} data-post="viplev2" data-lev="2"><i class="icon lev2" data-lev="2" style="background:url(http://img04.taobaocdn.com/tps/i4/T1oK1FXjdcXXXXXXXX-690-31.jpg) -199px -14px;height:15px;width:15px;"></i></label>
												<label class="checkbox" for=""><input type="checkbox" class="lev1 form" name="viplev1" {if $viplev1}checked="checked"{/if} data-post="viplev1" data-lev="1"><i class="icon lev1" data-lev="1" style="background:url(http://img04.taobaocdn.com/tps/i4/T1oK1FXjdcXXXXXXXX-690-31.jpg) -99px -14px;height:15px;width:15px;"></i></label>
												<label class="checkbox" for=""><input type="checkbox" class="lev0 form" name="viplev0" {if $viplev0}checked="checked"{/if}  data-post="viplev0" data-lev="0"><i class="icon lev0" data-lev="0" style="background:url(http://img04.taobaocdn.com/tps/i4/T1oK1FXjdcXXXXXXXX-690-31.jpg) -4px -12px ;height:15px;width:15px;"></i></label>
												</div>
												<a href="http://vip.taobao.com/growth_info.htm" target="_blank"><span class="x-icon x-icon-mini x-icon-info helper" data-tip="限定淘宝VIP等级，点击查看详细介绍">?</span></a>
											</div>
											<div class="control-group">
												<label class="control-label">买家信誉：</label>
												<div class="controls">
													<select class="input-small blselect form" name="credit" data-post="credit">
													<option value="4" {if $credit==4}selected="selected"{/if}>无等级</option>
													<option value="10" {if $credit==10}selected="selected"{/if}>一心</option>
													<option value="40" {if $credit==40}selected="selected"{/if}>二心</option>
													<option value="90" {if $credit==90}selected="selected"{/if}>三心</option>
													<option value="150" {if $credit==150}selected="selected"{/if}>四心</option>
													<option value="250" {if $credit==250}selected="selected"{/if}>五心</option>
													<option value="500" {if $credit==500}selected="selected"{/if}>一钻</option>
													<option value="1000" {if $credit==1000}selected="selected"{/if}>二钻</option>
													<option value="2000" {if $credit==2000}selected="selected"{/if}>三钻</option>
													<option value="5000" {if $credit==5000}selected="selected"{/if}>四钻</option>
													<option value="10000" {if $credit==10000}selected="selected"{/if}>五钻</option>
													<option value="20000" {if $credit==20000}selected="selected"{/if}>一皇冠</option>
													
													</select>
													<span class="buyerlev"><img src="{$credit_img}" /></span>
													<a href="http://service.taobao.com/support/knowledge-847752.htm?" target="_blank"><span class="x-icon x-icon-mini x-icon-info helper" data-tip="限定参加活动的买家等级。目前四钻以上买家非常少，请谨慎设置四钻以上条件。">?</span></a>
												</div>
											</div>
											<div class="control-group">
												<label class="control-label">注册时间：</label>
												<div class="controls">
													<label class="checkbox" for=""><input type="checkbox" {if $signdaychk}checked="checked"{/if} class="post" name="signdaychk" data-post="signdaychk"><input type="text" value="{$signday}" class="signday-calendar control-text form" name="signday" data-post="signday">之前</label>
													<span class="x-icon x-icon-mini x-icon-info helper" data-tip="系统默认注册时间大于一周 ">?</span>
												</div>
											</div> -->
											<div class="control-group">
												<label class="control-label">累计消费（元）：</label>
												<div class="controls">
													<input type="text" class="control-text span2 span-width xcount form" value="{$cfg.sumpay|default:'0'}" name="lj_money" data-post="lj_money" data-chk="lj_money">
													<span class="auxiliary-text ">
													注意！此选项仅确认收货完成交易才会累计！新用户慎用！
													</span>
												</div>
												<span class="x-icon x-icon-mini x-icon-info helper" data-tip="累计消费金额后可以参加抽奖">?</span>
											</div>
											<div class="control-group">
												<label class="control-label">用户限定：</label>
												<div class="controls">
													<label class="checkbox" for=""><input type="radio" class="form newcomer" name="custom" value="newcomer"  {if $cfg.trads==0}checked="checked"{/if} data-post="newcomer">新老客户<i class=""></i></label>
													<label class="checkbox" for=""><input type="radio" class="form oldcomer" name="custom" value="oldcomer" {if $cfg.trads==1}checked="checked"{/if} data-post="oldcomer">老客户<i class=""></i></label>
													<label class="checkbox" for=""><input type="radio" class="chkjy form" name="custom" value="chkjy" {if $cfg.trads>1}checked="checked"{/if} data-post="chkjy">交易<input type="text" data-chk="jy_tms" value="{$cfg.trads|default:0}" name="jy_tms" data-post="jy_tms" class="form jy_tms span1 span-width control-text">次的老客户<i class=""></i></label>
												<span class="auxiliary-text ">
													收货完成交易的次数
												</span>
												</div>
												<span class="x-icon x-icon-mini x-icon-info helper" data-tip="老客户限定，可指定交易次数">?</span>
											</div>
											<div class="control-group">
												<label class="control-label">评价限定：</label>
												<div class="controls">
													<label class="checkbox" for=""><input type="radio" class="form" {if $cfg.goodrates==0}checked="checked"{/if} name="rate" value="no_bad" data-post="no_bad">禁止差评<i class=""></i></label>
													<label class="checkbox" for=""><input type="radio" class="form" {if $cfg.goodrates==1}checked="checked"{/if} name="rate" value="all_good" data-post="all_good">100%好评<i class=""></i></label>
												<span class="auxiliary-text">
													用户无评价视为好评
												</span>
												</div>
												<span class="x-icon x-icon-mini x-icon-info helper" data-tip="限定好评用户，100%好评时，中评用户也不能参与">?</span>
											</div>
											<!--div class="control-group">
												<label class="control-label">退款限定：</label>
												<div class="controls">
													<label class="checkbox" for=""><input type="checkbox" class="form" name="no_refond"  {if $cfg.norefound}checked="checked"{/if} data-post="no_refond">无退款<i class=""></i></label>
												</div>
												<span class="x-icon x-icon-mini x-icon-info helper" data-tip="指定该条件则限定无退款的用户参与活动">?</span>
											</div-->
											<!-- <div class="control-group">
												<label class="control-label ">
													<span class="label label-success  helper" data-tip="show" data-tip-info="jiaohu-tip">交互条件
														<div class="jiaohu-tip bui-overlay bui-ext-position tips tips-small tips-info tips-no-icon hide" style="font-weight:normal;text-shadow:none;font-size:12px;text-align:left">
																<div class="tips-content">微淘粉丝和官方微博是两款交互工具。<br />
														建议谨慎设置该选项，设定该选项会引导用户使用微淘或微博，<br />
														如果用户不是微淘或微博用户，则会造成用户体验不佳。<br />
																</div>
																<s class="x-align-arrow"><s class="x-align-arrow-inner"></s></s>
														</div>
													</span>：
												</label>
												<div class="controls">
												
													<label class="checkbox helper" data-tip="指定买家微博的粉丝数" for=""><input type="checkbox" class="chkfs form" {if $weibo_chkfs}checked="checked"{/if} name="weibo_chkfs" data-post="weibo_chkfs">微博粉丝数大于<input type="text" data-chk="fs" value="{$weibo_fs|default:0}" class="xcount span2 span-width control-text form" name="weibo_fs" data-post="weibo_fs">人<i class=""></i></label>
													<label class="checkbox helper" data-tip="抽奖时关注微博才可抽奖，店铺需在本站绑定微博" for="gz"><input {if $weibo}checked="checked"{/if} type="checkbox" class="form" name="weibo" data-post="weibo">关注官方微博<i class=""></i></label>
													<label class="checkbox helper" data-tip="买家分享本活动后才可抽奖" for=""><input type="checkbox" class="form"  {if $weibo_fx}checked="checked"{/if} name="weibo_fx" data-post="weibo_fx">微博分享<i class=""></i></label>
												</div>
												<span class="x-icon x-icon-mini x-icon-info helper"  data-tip="请谨慎设置微博限定条件，该功能要求用户重新绑定微博帐号">?</span>
											</div>
											<div class="control-group">
												<label class="control-label ">
													<span class="label label-success">微淘
													</span>：
												</label>
												<div class="controls">
												
													<label class="checkbox helper" data-tip="show" data-tip-info="weitao-tip" for=""><input type="checkbox" class="form" {if $weitao}checked="checked"{/if} name="weitao" data-post="weitao">微淘粉丝<i class=""></i>
														<div class="weitao-tip bui-overlay bui-ext-position tips tips-small tips-info tips-no-icon   hide">
														<div class="tips-content">抽奖时，只有微淘粉丝能参与  
															<br /><img src="{$wurl}" />
														</div>
														<s class="x-align-arrow"><s class="x-align-arrow-inner"></s></s>
														</div>
													</label>
													</div>
												<span class="x-icon x-icon-mini x-icon-info helper"  data-tip="必须是微淘用户才可抽奖。该选项会引导用户进入微淘关注店铺">?</span>
											</div> -->
											
											<div class="control-group ">
												<label class="control-label">好评福利：</label>
												<div class="controls ">
													<label class="checkbox" for="">每次好评给予机会<input type="text" class="span2 span-width control-text" value="{$cfg.goodrate_times|default:"0"}" name="goodrate_times">次<i class=""></i></label>
												</div>
												<span class="auxiliary-text">
												仅集市用户生效，天猫动态评分无效
												</span>
												<span class="x-icon x-icon-mini x-icon-info helper" data-tip="每当用户给出好评，赠送抽奖机会">?</span>
											</div>
											<div class="control-group ">
												<label class="control-label">交易福利：</label>
												<div class="controls ">
													<label class="checkbox" for="">每<input type="text" name="everytrades" value="{$cfg.everytrades|default:"0"}" class="span2 span-width control-text">次交易给予机会<input type="text" name="everytrades_times"  value="{$cfg.everytrades_times|default:"0"}" class="span2 span-width control-text">次<i class=""></i></label>
												</div>
												<span class="auxiliary-text">
												订单收货完成算一次交易
												</span>
												<span class="x-icon x-icon-mini x-icon-info helper" data-tip="每次交易顺利完成，赠送抽奖机会">?</span>
											</div>
											<div class="control-group ">
												<label class="control-label">累计消费福利：</label>
												<div class="controls ">
													<label class="checkbox" for="">每消费<input type="text" name="everysumpay" value="{$cfg.everysumpay|default:"0"}" class="span2 span-width control-text">元给予机会<input type="text" name="everysumpay_times" value="{$cfg.everysumpay_times|default:"0"}" class="span2 span-width control-text">次<i class=""></i></label>
												<span class="auxiliary-text">
												重复累计不封顶
												</span>
												</div>
												<span class="x-icon x-icon-mini x-icon-info helper" data-tip="累计次数每达到指定金额即给予抽奖机会，每单仅累计一次">?</span>
											</div>
											
											<!-- <div class="control-group">
												<label class="control-label">地点限制：</label>
												<button class="button button-mini areabtn pull-left" type="button"> 买家所在地  <span class="x-icon x-icon-mini x-icon-info helper" data-tip="不在选定区域的买家不可参与抽奖，请谨慎设置">?</span></button>
												<input type="checkbox" class="areachk hide form" name="areachk" {if $areachk}checked="checked"{/if} data-post="areachk">
												<input type="hidden" class="areainput hide form" name="areainput" value="{$areainput_str|default:0}" data-post="areainput">
												<div class="controls control-row-auto arease pull-right " style="{if $areachk}height:auto;visibility:visible;{else}visibility:hidden;height:0{/if}">
												<div class="bui-stdmod-body" style="height:120px;width:200px;overflow-y:auto;overflow-x:hidden;">
												<ul class="bui-simple-list bui-select-list">
												<li data-areaid="0" class="bui-list-item {if $areainput_str==0}bui-list-item-selected{/if} aid0">不限</li>
												{foreach from=$area item=cu_area key=key}
													<li data-areaid="{$key}" class="{foreach from=$areainput item=areaid}{if $areaid==$key}bui-list-item-selected{/if}{/foreach} bui-list-item aid{$key} form">{$cu_area}</li>
												{/foreach}
												</ul>
												</div>
												</div>
											</div> -->
									</div>
								</div>
							</div>
							{/if}
						</div>
					</div>
					<div class="control-group span24 centered res">
					<button class="button save" type="submmit" >完成</button>
					</div>
					</form>
    </div>
  </div>
</body>
</html>